import { isCodeMessage } from "@/api/config"

/**
 * @author: 小佘佘🦀
 * @description: 搜索用户
 * @param {string} email
 * */
export const searchUser = async (email: string) => {

    const response = await fetch(`/api-backend/api/team/search?email=${email}`, {
        method: "POST",
        headers: {
            "content-type": "application/x-www-form-urlencoded",
        },
        mode: "no-cors",
        redirect: "manual"
    })

    return isCodeMessage(response)
}